package com.lambda.sample.swipeback;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;

import com.lambda.swipeback.MMFragmentActivity;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;

public class ChildActivity extends MMFragmentActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_child);
        initNavigationSwipeBack();
        try {
            HttpURLConnection conn = (HttpURLConnection) new URL("dfsadf").openConnection();
            OutputStream os = conn.getOutputStream();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void onClick(View v) {
        startActivity(new Intent(this, ChildActivity.class));
    }
}
